From: Roger Pau Monne Date: Wed, 13 Mar 2013 17:42:17 +0000 (+0000) Subject: xl: add vif.default.script X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7101 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=733b9c524dbc2bec318bfc3588ed1652455d30ec;p=xen.git xl: add vif.default.script Replace vifscript with vif.default.script. The old config option is kept for backwards compatibility. Signed-off-by: Roger Pau Monné Cc: George Dunlap Cc: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/docs/man/xl.conf.pod.5 b/docs/man/xl.conf.pod.5 index 31aebcaa90..7b9fcac2fa 100644 --- a/docs/man/xl.conf.pod.5 +++ b/docs/man/xl.conf.pod.5 @@ -70,10 +70,12 @@ operations (primarily domain creation). Default: C -=item B +=item B Configures the default hotplug script used by virtual network devices. +The old B option is deprecated and should not be used. + Default: C =item B diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 9f45e4559f..4c598dbbad 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -96,8 +96,17 @@ static void parse_global_config(const char *configfile, * different device kinds. */ - if (!xlu_cfg_get_string (config, "vifscript", &buf, 0)) + if (!xlu_cfg_get_string (config, "vifscript", &buf, 0)) { + fprintf(stderr, "the global config option vifscript is deprecated, " + "please switch to vif.default.script\n"); + free(default_vifscript); default_vifscript = strdup(buf); + } + + if (!xlu_cfg_get_string (config, "vif.default.script", &buf, 0)) { + free(default_vifscript); + default_vifscript = strdup(buf); + } if (!xlu_cfg_get_string (config, "defaultbridge", &buf, 0)) { fprintf(stderr, "the global config option defaultbridge is deprecated, "